package com.it235.seata.business.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 功能描述:
 *
 * @author: 李明杰
 * @date: 2022/1/18 1:24
 */
@FeignClient(name = "order-service")
@Component
public interface OrderClient {

    @GetMapping("order/create")
    Boolean create(@RequestParam("userId") long userId, @RequestParam("productId") long productId);
}